<?php
$id=(isset($_REQUEST['id']))?$_REQUEST['id']:0;
require'dbcon.php';
$sql="delete from tb_note where w_id='$id'";
$rs=$db->query($sql);
if($rs==true){
    header("Location:index.php");
}else{
    echo "<script language='javascript'>";
    echo "alert('留言删除失败！')";
    echo "window.location.herf='index.php';";
    echo "</script>";
}
$db->close();